﻿namespace FemtoHttpd
{
    public class FemtoHttpStatus
    {
        public static FemtoHttpStatus Ok { get; } = new FemtoHttpStatus(200, "OK");

        public static FemtoHttpStatus BadRequest { get; } = new FemtoHttpStatus(400, "Bad Request");

        public static FemtoHttpStatus NotFound { get; } = new FemtoHttpStatus(404, "Not Found");

        public static FemtoHttpStatus InternalServerError { get; } = new FemtoHttpStatus(500, "Internal Server Error");

        public static FemtoHttpStatus NotImplemented { get; } = new FemtoHttpStatus(501, "Not Implemented");

        public int Code { get; private set; }

        public string Name { get; private set; }

        public FemtoHttpStatus(int code, string name)
        {
            Code = code;
            Name = name;
        }
    }
}
